-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(userspace): switch to timer_settime API for stats writer. #2646
Conversation
Refs #2645 |
Added some more debug prints! |
It seems like the timer is ticking just twice (ie: once for the |
It seems like `setitimer` is not correctly working when built from CI; perhaps a gcc/glibc bug? Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Why do i always |
Dropped debug prints; |
To test, grab latest package produced by this PR CI, and do the same on master. You'll notice that on master, the tick is triggered just twice; on this PR it gets ticked continuously. (enable metrics with 1s timeout to quickly test) https://github.com/falcosecurity/falco/suites/13762856851/artifacts/762497258 |
/kind bug |
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
/milestone 0.35.1 |
@FedeDP our hero !!! Fantastic job 🤩 I could replicate the issues on master and confirming this PR fixes the issues! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, incertum, jasondellaluce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
Switched to use
timer_settime
API in stats writer, assetitimer
seems to have issues when built from our CI (glibc/gcc bugs?)Which issue(s) this PR fixes:
Fixes #2645
Special notes for your reviewer:
Does this PR introduce a user-facing change?: